package zl.osimall.common.service;

import com.github.pagehelper.PageInfo;
import zl.osimall.common.bean.Goods;
import zl.osimall.common.exception.SteduException;

import java.util.List;

public interface GoodsService {
    void add(Goods goods) throws SteduException;

    void delete(Integer id) throws SteduException;

    void update(Goods goods) throws SteduException;

    Goods selectById(Integer id) throws SteduException;

    List<Goods> selectByCount();
    PageInfo<Goods> selectByLike(Goods goods , Integer pageNum, Integer pageSize);

    List<Goods> selectCondition(Goods goods);
}
